Skip to content

Conversation

ben-agnew
Copy link

@ben-agnew ben-agnew commented Oct 1, 2025

This pull request introduces a small change to the formatting of unique constraint statements in the createTableUniques function. The change ensures that each unique constraint statement ends with a comma and newline, rather than conditionally ending with only a newline for the last item.

Due to the ordering of the statements, there would be a syntax error if a "check" is present in the table. Removing the index check aligns the behavior with the other statements.

  • Formatting update: Modified the logic in the createTableUniques function in drizzle-kit/src/dialects/mssql/typescript.ts so that each unique constraint statement ends with ,\n regardless of its position in the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant